#include <bits/stdc++.h>

using namespace std;

class Solution {
public:
    int prefixCount(vector<string>& words, string pref)
    {
	int res = 0;
	for (auto& str : words) {
	    for (int i = 0, len = size(pref); i <= len; ++i) {
		if (i == len) {
		    res++;
		    break;
		}
		if (str[i] == pref[i]) continue;
		else break;
	    }
	}
	return res;
    }

private:
};

int main()
{
    [[maybe_unused]] Solution solution;
    return 0;
}
